﻿/**
 * Created by Administrator on 2017/3/2 0002.
 */
var Page13={
    create:function () {
        var page={};
        page.ui=new PIXI.DisplayObjectContainer();
        var bg=Easy.CreateSprite('assets/images/page_bg.png',0,0,0,0,1);
        page.ui.addChild(bg);

        var i0=Easy.CreateSprite('assets/images/p13_i0.png',370,400,0.5,0.5,0);
        page.ui.addChild(i0);

        var bt_locate=Easy.CreateSprite('assets/images/bt_locate.png',pixiStage.x+740,1020,1,0.5,1);
        bt_locate.interactive=true;
        page.ui.addChild(bt_locate);
        bt_locate.on('pointerdown',function()
        {
            showMap();
        });

        page.In=function () {
            i0.alpha=0;
            TweenMax.to(i0,1.5,{delay:0.2*0,alpha:1});


        }
        page.Out=function()
        {
            TweenMax.killTweensOf(i0);


            TweenMax.to(page.ui,0.3,{alpha:1,onComplete:function () {
                page.ui.alpha=1;
                i0.alpha=0;
            }});
        }

        return page;
    }
}